//
//  SuperViewController.h
//  ICrEAM
//
//  Created by mac on 16/10/14.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TPKeyboardAvoidingTableView.h"
#import "DeviceMacro.h"
#import "UIColor+expanded.h"
#import "ResponseBase.h"
#import "RequestBaseApi.h"
#import "MySearchView.h"
#import "PTYSwitch.h"
//#import "SuspendView.h"
@class SuspendView;
@interface SuperViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic,strong)SuspendView *suspendView;
//是否隐藏导航栏
@property(nonatomic,assign)BOOL hideNav;
//是否隐藏悬浮按钮
@property(nonatomic,assign)BOOL hideSuspendView;
@property(nonatomic,strong)UITableView *tableView;
@property(nonatomic,strong)UITableView *groupTableView;
@property(nonatomic,strong)TPKeyboardAvoidingTableView *tpTableView;

@property(nonatomic,strong)MySearchView *searchTextField; //搜索框
//切换view
@property(nonatomic,strong)PTYSwitch *mySwitch;
//切换view的数据
@property(nonatomic,strong)NSArray *switchArray;
//是否隐藏导航栏右侧menu
@property(nonatomic,assign)BOOL hideRightNavItem;
//网络请求
-(void)requestDataWithAction:(RequestBaseApi *)action haveHud:(BOOL)haveHud showError:(BOOL)isShow success:(YTKRequestCompletionBlock)success    failure:(YTKRequestCompletionBlock)failure;

-(void)showText:(NSString *)loadingText;

//vin
@property (nonatomic, strong) NSString *super_VIN;
//车主编号
@property (nonatomic, strong) NSString *super_owner_no;
//是否页面值变化
@property (nonatomic, assign) BOOL super_hasViewValueChanged;
-(void)CheckIsEdit:(BOOL)isEdit pushType:(NSInteger)type;
-(void)backButtonClick;
//弹出框
-(void)alertMessage:(NSString *)message withBlock:(ICrEAMBlock)successBlock;
-(void)alertMessage:(NSString *)message withSuccessBlock:(ICrEAMBlock)successBlock;
-(void)alertMessage:(NSString *)message withSuccessBlock:(ICrEAMBlock)successBlock failBlock:(ICrEAMBlock)failBlock;
-(void)carChangeAlertMessage:(NSString *)message withSuccessBlock:(ICrEAMBlock)successBlock failBlock:(ICrEAMBlock)failBlock;

//返回首页
-(void)didbackHomePage;

@end
